package com.mju.service.jobhandler;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mju.service.SelectTeacherService;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Service
public class AutoChoiceJob {
	@Autowired
	private SelectTeacherService selectTeacherService;
		
	@XxlJob("autoChoiceJobHandler")
	public void autoChoiceJobHandler() {
		XxlJobHelper.log("XXL-JOB, autoChoiceJobHandler.");
		selectTeacherService.autoChoiceTask();
	}
}
